<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        var str = "iOS Android HTML5 Java";
        var str1 = str.split("");
        var str2 = str1.reverse();
        var str3 = str2.join("");
        console.log(str3);
    </script>
</body>
</html>